<?php

/**
 * Index actions.
 *
 * @package    5
 * @subpackage Index
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class IndexActions extends sfActions
{
  public function executeIndex(sfWebRequest $request)
  {
    $models = ModelNameListGenerator::generate();
    $this->routes = array_fill_keys($models, '');
    foreach ($this->routes as $key => &$val)
    {
      $val = strtolower(preg_replace('/\B([A-Z])/', '_\1', $key));
    }
  }
}
